#pragma once

class CCustomWebBrowserEventHandler;
class CContentUI : public CContainerUI, public INotifyUI, public IDialogBuilderCallback 
{
public:
	CContentUI(CPaintManagerUI& pm);
	~CContentUI(void);
	

	LPCTSTR GetWindowClassName() const { return _T("UIContent"); };
	UINT GetClassStyle() const { return UI_CLASSSTYLE_CONTAINER; };

	CControlUI* CreateControl(LPCTSTR pstrClass);

	void Notify(TNotifyUI& msg);

private:
	CPaintManagerUI& paint_manager_;
	CCustomWebBrowserEventHandler* m_pEventHandler;
public:
	void RefreshBaseInfo();
	void ShowPhoneInfoTab();
	void ShowDefaultTab();
	void RefreshSoftwareInfo();
	void RefreshContactsInfo();
private:
	void ShowTable(int iIndex);
	void ShowNewPhoneTab();
};

